import java.io.BufferedReader;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;

public class Ticket {

	
	private PassengerSeat passenger_seat;
	// passenger_1_ticket=1 成人票
	// passenger_1_ticket=2 儿童票
	// passenger_1_ticket=3 学生票
	// passenger_1_ticket=4 残军票
	private PassengerTicket passenger_ticket = PassengerTicket.CHENG_REN;
	/** 姓名 */
	private String passenger_name;
	/** 证件类型 */
	private String passenger_cardtype="1";
	/** 身份证 */
	private String passenger_cardno;
	/** 手机号 */
	private String passenger_mobileno;
	
	public Ticket(String passenger_name,String passenger_cardno,String passenger_mobileno){
		this.passenger_name = passenger_name;
		this.passenger_cardno = passenger_cardno;
		this.passenger_mobileno = passenger_mobileno;
	}

	public PassengerSeat getPassenger_seat() {
		return passenger_seat;
	}

	public void setPassenger_seat(PassengerSeat passengerSeat) {
		passenger_seat = passengerSeat;
	}

	public PassengerTicket getPassenger_ticket() {
		return passenger_ticket;
	}

	public void setPassenger_ticket(PassengerTicket passengerTicket) {
		passenger_ticket = passengerTicket;
	}

	public String getPassenger_name() {
		return passenger_name;
	}

	public void setPassenger_name(String passengerName) {
		passenger_name = passengerName;
	}

	public String getPassenger_cardtype() {
		return passenger_cardtype;
	}

	public void setPassenger_cardtype(String passengerCardtype) {
		passenger_cardtype = passengerCardtype;
	}

	public String getPassenger_cardno() {
		return passenger_cardno;
	}

	public void setPassenger_cardno(String passengerCardno) {
		passenger_cardno = passengerCardno;
	}

	public String getPassenger_mobileno() {
		return passenger_mobileno;
	}

	public void setPassenger_mobileno(String passengerMobileno) {
		passenger_mobileno = passengerMobileno;
	}



	enum PassengerSeat{
		//passenger_1_seat=3  /硬卧
		//passenger_1_seat=1  /硬座
		//passenger_1_seat=O  /二等座
		//passenger_1_seat=M  /一等座
		YING_WO("硬卧","3"),
		YING_ZUO("硬卧","1"),
		ER_DENG_ZUO("二等座","O"),
		YI_DENG_ZUO("一等座","M");
		String value;
		String name;
		PassengerSeat(String name,String value){
			this.name = name;
			this.value = value;
		}
		public String getValue() {
			return value;
		}
		public String getName() {
			return name;
		}
		
	}
	
	enum PassengerTicket{
		// passenger_1_ticket=1 成人票
		// passenger_1_ticket=2 儿童票
		// passenger_1_ticket=3 学生票
		// passenger_1_ticket=4 残军票
		CHENG_REN("成人票","1"),
		ER_TONG("儿童票","2"),
		XUE_SHENG("学生票","3"),
		CAN_JUN("参军票","4");
		String value;
		String name;
		PassengerTicket(String name,String value){
			this.name = name;
			this.value = value;
		}
		public String getValue() {
			return value;
		}
		public String getName() {
			return name;
		}
		
	}
}



